package cn.panda.edu.service.impl;

import cn.panda.edu.dao.SysMenuMapper;
import cn.panda.edu.model.SysMenu;
import cn.panda.edu.service.SysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 苑庆涛
 * @create 2019-03-06 14:03
 */
@Service
public class SysMenuServiceImpl implements SysMenuService {
    @Autowired
    SysMenuMapper sysMenuMapper;
    @Override
    public List<SysMenu> findList(Integer id,String name,Integer typeId) {
        return sysMenuMapper.findList(id,name,typeId);
    }

    @Override
    public List<SysMenu> findListFather(Integer id, String name, Integer typeId) {
        return sysMenuMapper.findListFather(id,name,typeId);
    }

    @Override
    public SysMenu findById(Integer id) {
        return sysMenuMapper.findById(id);
    }
}
